<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Insert title here</title>
</head>
<body>
	<h3>登录信息</h3>
	<span th:text="${userlogin}" style="display:inline;color:red;"></span>
	<h1>
		<span th:if="${#fields.hasErrors('${userBean.*}')}"><span
			th:errors="${userBean.*}"></span></span> <span th:text="${message}"></span>
	</h1>
	<form action="userLogin" th:object="${userBean}" method="post">
		<div>
			<span><label>ID</label></span> <span><input name="userId" type="text" /></span>
		</div>
		<div>
			<span><label>密码</label></span> <span><input name="password" type="password" /></span>
		</div>
		<div>
			<span><input type="submit" name="login"  value="登录" /></span>
		</div>
		<div>
			<span><input type="submit" name="reg" value="注册" /></span>
		</div>
		
	</form>
</body>
</html>